package processing_layer;

import java.sql.Blob;

/**
 * This class represents an entry in the DB users table.
 * It is used in order to pass information from the DB layer to the interface layer,
 * and avoiding the excess usage of ResultSets 
 */
public class User
{
	public String username;
	public String password;
	public String firstName;
	public String lastName;
	public String phone;
	public String address;
	public boolean isAdmin;
	public Blob photo;
	
	public User(String username, String password, String firstName,
			    String lastName, String phone, String address,
			    boolean isAdmin, Blob photo)
	{
		super();
		this.username = username;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.phone = phone;
		this.address = address;
		this.isAdmin = isAdmin;
		this.photo = photo;
	}
}